<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>代理服务</title>
</head>
<body>
    <button id="btn">请求百度</button>

    <script src="../javascripts/jquery.js"></script>
    <script>
        document.querySelector('#btn').onclick = function(event){
            $.ajax({
                method: 'get',
                // url: 'http://www.baidu.com',
                url: 'http://localhost:8888/request/baidu',             
                success(res){
                    $('body').html(res)
                }
            })
        }        
    </script>
</body>
</html>